package java_dome.base;
//封装

public class Encapsulation {
    public Encapsulation() {

    }
    private String name1 = "成员变量封装";

    public String getName1() {
//        封装获取name1
        return this.name1;
    }

    public void setName1(String name1) {
        this.name1 = name1;
    }
}
